﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ARR.Entities;

namespace ARR.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IQueriesService" in both code and config file together.
    [ServiceContract]
    public interface IReportsService
    {
        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        byte[] GetSalesCategoryComparison(int rangeReviewId, int categoryId);

        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        List<SalesCategoryComparisonPareto> GetSalesCategoryComparisonPareto(int rangeReviewId, int categoryId);

        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        IList<ImporterResult> ValidateCategoryReportGeneration(RangeReview rangeReview, int categoryId);

        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        byte[] GenerateExecutiveSummaryReport(int rangeReviewId);

        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        List<ARR.Entities.Gateways.SalesCategoryComparisonByDateRow> GetSalesCategoryComparisonByDate(int rangeReviewId, int categoryId);

        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        List<SalesCategoryComparisonBySpace> GetSalesCategoryComparisonBySpace(int rangeReviewId, int categoryId);
    }
}
